//
//  WSButtonGroup.h
//  jinYingWu
//
//  Created by 55like on 11/08/2017.
//  Copyright © 2017 55like lj. All rights reserved.
//

#import <Foundation/Foundation.h>
@class WSButtonGroup;
typedef void (^WSButtonGroupBlock)(WSButtonGroup* group);

@protocol WSButtonGroupdelegate <NSObject>
@optional
-(void)WSButtonGroupChange:(WSButtonGroup*)btnCrop;


-(void)WSButtonGroupClick:(WSButtonGroup*)btnCrop;
//- (void)dropdownMenuDidShow:(listViewController *)menu;
@end

@interface WSButtonGroup : NSObject
-(void)addButton:(UIButton*)button;
@property(nonatomic,strong)NSMutableArray*buttonArray;
@property(nonatomic,weak)UIButton*currentSelectBtn;
@property(nonatomic,assign)NSInteger currentindex;



-(void)setGroupClickBlock:(WSButtonGroupBlock)clickBlock;
-(void)setGroupChangeBlock:(WSButtonGroupBlock)ChangeBlock;
@property(nonatomic,weak)id<WSButtonGroupdelegate> delegate;
-(void)btnClickAtIndex:(int)index;

-(void)reset;
@end
